

<div class="form-group">
    <label class="control-label" for="textinput">选择小区：</label>
    <div ng-repeat="m in communityLabelList.data">
        <input type="checkbox" style="zoom:200%;" ng-model="chk" ng-click="toggle(chk,m.objId)"
               ng-checked="communityIds.indexOf(m.objId)!=-1"/> {{m.communityName}}
    </div>
</div>
<label class="control-label" for="textinput">公告标题</label>
<textarea class="form-control" rows="1" ng-model="notice.title" required style="width:50%;" tabindex="7"></textarea>
<label class="control-label" for="textinput">壁纸</label>
<textarea class="form-control" rows="1" ng-model="notice.imageURL" required style="width:50%;" tabindex="7"></textarea>
<label class="control-label" for="textinput">内容</label>
<!--<div simditor ng-model="editor" placeholder="some placeholder" style="width:50%;"></div>-->
<textarea id="editor_id" name="content" style="width:50%;height:300px;">
</textarea>

<a ng-click="clearEditor()" class="btn-primary btn-sm nodecoration">清空</a>
<a ng-click="postNotice(communityId,notice)" class="btn-primary btn-sm nodecoration">{{message}}</a>
<div></div>


<button ng-click="addFile()" style="margin-top:15px">添加附件</button>
<button ng-click="uploadFile()" style="margin-top:15px">上传</button>
<div ng-repeat="item in items">
    <input type="file" ng-model="name" onchange="angular.element(this).scope().selectFile(this.files)">
    <a ng-click="deleteFile(item,name)" class="btn-primary btn-sm nodecoration">删除</a>
</div>

<div ng-repeat="url in urls">
    <label class="control-label" for="textinput">{{url}}</label>
    <img ng-src="{{url}}" width="100">
</div>